@layout("/common/_container.html",{plugins:["table","ztree","layer","sweet-alert","laydate"],js:["/assets/common/static/layui/layui.js","/assets/modular/system/car/car.js"],css:["/assets/common/static/layui/css/layui.css"]}){
<div class="row">
    <div class="col-lg-10 col-sm-9" id="carManagerPage">
        <div class="row">
            <div class="col-lg-12">
                <div class="card card-outline-theme m-b-10">
                    <div class="card-body">
                        <div class="form-horizontal">
                            <div class="form-body">
                                <div class="row">
                                    <div class="col-md-3">
                                        <div class="input-group">
                                            <div class="input-group-prepend">
                                                <div class="input-group-text">车辆类型</div>
                                            </div>
                                            <input v-model="carType" type="text" class="form-control" placeholder="奔驰/奥迪/本田" autocomplete="off">
                                        </div>
                                    </div>
                                    <div class="col-md-3">
                                        <div class="input-group">
                                            <div class="input-group-prepend">
                                                <div class="input-group-text">车辆颜色</div>
                                            </div>
                                            <input v-model="carColor" type="text" class="form-control" placeholder="红色/黑色/银白色" autocomplete="off">
                                        </div>
                                    </div>
                                    <div class="col-md-3">
                                        <div class="input-group condition-button">
                                            <div class="input-group-btn condition-button">
                                                <button type="button" id="check-minutes"
                                                        class="btn btn-info waves-effect waves-light condition-button-width" onclick="car.search()">查询</button>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-lg-12">
                <div class="card card-outline-theme m-b-0">
                    <div class="card-body p-t-0 p-b-0">
                        <div class="form-horizontal">
                            <div class="form-actions">
                                <div class="row">
                                    <div class="col-lg-12">
                                        <div class="card m-b-0 p-b-0">
                                            <div class="hidden-xs" id="carTableToolbar" role="group">
                                                @if(shiro.hasPermission("/car/add")){
                                                <button type="button" class="btn btn-primary waves-effect" onclick="car.openAddCar()">
                                                    <i class="fa fa-plus"></i>&nbsp;添加
                                                </button>
                                                @}
                                                @if(shiro.hasPermission("/car/edit")){
                                                <button type="button" class="btn btn-primary waves-effect m-l-5" onclick="car.openChangeCar()">
                                                    <i class="fa fa-edit"></i>&nbsp;更新
                                                </button>
                                                @}
                                                @if(shiro.hasPermission("/car/delete")){
                                                <button type="button" class="btn btn-primary waves-effect m-l-5" onclick="car.delCar()">
                                                    <i class="fa fa-remove"></i>&nbsp;删除
                                                </button>
                                                @}
                                                @if(shiro.hasPermission("/car/myCollection")){
                                                <button type="button" class="btn btn-primary waves-effect m-l-5" onclick="car.openMyCollectionCar()">
                                                    <i class="fa fa-edit"></i>&nbsp;我的收藏
                                                </button>
                                                @}
                                                @if(shiro.hasPermission("/car/myOrder")){
                                                <button type="button" class="btn btn-primary waves-effect m-l-5" onclick="car.openMyOrderCar()">
                                                    <i class="fa fa-edit"></i>&nbsp;我的预约
                                                </button>
                                                @}
                                                @if(shiro.hasPermission("/car/uploadCarImg")){
                                                <button type="button" class="btn btn-primary waves-effect m-l-5" id="uploadImg" onclick="car.getId()">上传图片</button>
                                                <div class="layui-upload-list">
                                                    <p id="img"></p>
                                                    <p id="demoText"></p>
                                                </div>
                                                @}
                                            </div>
                                            <#table id="carTable"/>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
@}
